<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<!DOCTYPE html>
<html lang="zh-CN">
	<head> 
    <meta charset="UTF-8">
    <%@ include file="/WEB-INF/views/include/head.jsp"%>
    <link rel="stylesheet" href="${ctxStatic}/css/common_erp.css">
    <link rel="stylesheet" href="${ctxStatic}/css/layerSm.css"> 
    <script>
    
	  //删除方法
	    function delGroup(){
	          // 调用后台删除方法
	        $.post("${ctx}/personnel/group/delete?id=${personnel.id}",'',function(result){
	             // 提示信息
	             tipParent(result.message);
	             // 返回状态
	            if(result.statusCode==STATUSCODEOK){
	                 // 刷新页面
	                window.parent.frames[0].location.reload();
	                 // 关闭页面
	                closeWin(); 
	             }
	        },'json');
	   }
    </script> 
    
    </head>
	<body>
		<!-- 创建页面head部 -->
		<div id="editPage" class="layerHeader clearfix">
	    	<p class="headerTitle"><spring:message code="personnel_head_check_info"/></p>
			<div class="headerButton clearfix">
		    <!-- 编辑 -->
		    <shiro:hasPermission name="personnel:group:edit">
		    <button type="button" onClick="window.location.href='${ctx}/personnel/group/form?id=${personnel.id}'" >
		    	<spring:message code="personnel_head_edit_info" />
		    </button>
		    
	        <!-- 删除 -->
	        <button type="button" onclick="del(delGroup)"><spring:message code="btn_delete"/></button>
	        </shiro:hasPermission>
	        <!-- 取消 -->
	        <button type="button" onclick="closeWin()"><spring:message code="btn_cancle"/></button>             
		    </div>
		</div>
	
		<div id="showHtml">
			<div class="smList">
			    <div class="items clearfix">
		        	<div class="col-50 clearfix haveToBox">
		        	    <!--分组名称-->
		                <p class="tit"><spring:message code="personnel_group_name" /></p>
		               
			            <p>${personnel.groupName}</p>
		            </div>
		        </div>
			    <div class="items clearfix">
		        	<div class="col-50 clearfix">
		                    <!-- 状态 -->
		                        <p class="tit"><spring:message code="personnel_create_enableFlag" /></p>
		                        <c:choose>
		                            <c:when test="${personnel.enableFlag eq 1}"><p class="rtname fl"><spring:message code="personnel_open"/></p></c:when>
		                        </c:choose>
		                        <c:choose>
		                            <c:when test="${personnel.enableFlag eq 0}"><p class="rtname fl"><spring:message code="personnel_close"/></p></c:when>
		                        </c:choose>
		            </div>
		        </div>
		        <div class="items clearfix">
		        	<div class="clearfix">
		        	    <!--描述-->
		        	    <div style="float:left;border:1px;width:9%;"><spring:message code="personnel_create_description"/></div>
	                    <div style="float:left;border:1px;width:70%;">${personnel.groupDescription}</div>
		            </div>
		        </div>  
			</div>
		</div>
    </body>
</html>
